package com.api.shopapi.service.impl;

import com.api.shopapi.entity.MedicationSchedulingMorning;
import com.api.shopapi.entity.dto.MedicationSchedulingMorningDTO;
import com.api.shopapi.mapper.MedicationSchedulingMorningMapper;
import com.api.shopapi.service.MedicationSchedulingMorningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("MedicationSchedulingMorningServiceImplOne")
public class MedicationSchedulingMorningServiceImpl implements MedicationSchedulingMorningService {
    @Autowired
    private MedicationSchedulingMorningMapper medicationSchedulingMorningMapper;


    @Override
    public int insert(MedicationSchedulingMorning medicationSchedulingMorning) {
        return medicationSchedulingMorningMapper.insert(medicationSchedulingMorning);
    }

    @Override
    public int updateByMedicationSchedulingMorningCode(MedicationSchedulingMorning medicationSchedulingMorning) {
        return medicationSchedulingMorningMapper.updateByMedicationSchedulingMorningCode(medicationSchedulingMorning);
    }

    @Override
    public int deleteByMedicationSchedulingMorningCode(String medicationSchedulingMorningCode) {
        return medicationSchedulingMorningMapper.deleteByMedicationSchedulingMorningCode(medicationSchedulingMorningCode);
    }

    @Override
    public MedicationSchedulingMorning getByMedicationSchedulingMorningCode(String medicationSchedulingMorningCode) {
        return medicationSchedulingMorningMapper.getByMedicationSchedulingMorningCode(medicationSchedulingMorningCode);
    }

    @Override
    public MedicationSchedulingMorningDTO getByMedicationSchedulingCode(String medicationSchedulingCode) {
        return medicationSchedulingMorningMapper.getByMedicationSchedulingCode(medicationSchedulingCode);
    }
}
